package com.cby.feedback.client;

import com.cby.feedback.client.impl.AlgorithmClientImpl;
import com.dam.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "cby-alg-7002",fallback = AlgorithmClientImpl.class)
@Component
@Repository
public interface AlgorithmClient {
    @GetMapping("getAlgorithm/{id}")
    public Result getAlgorithm(@PathVariable String id);
}
